snmp-utils:
    pkg.installed:
        - name: net-snmp-utils
snmpd:
    pkg.installed:
        - name: net-snmp
    service.running:
        - enable: True
        - reload: True
        - require:
          - file: /etc/init.d/snmpd
        - watch:
          - file: /etc/init.d/snmpd
          - file: /etc/snmp/snmpd.conf
          - pkg: snmpd
/etc/init.d/snmpd:
    file.managed:
        - source: salt://snmpd/snmpd
        - name: /etc/init.d/snmpd
        - user: root
        - mode: 755
        - template: jinja
        - require:
          - pkg: snmpd
/etc/snmp/snmpd.conf:
    file.managed:
        - source: salt://snmpd/snmpd.conf
        - name: /etc/snmp/snmpd.conf
